.class final Lnet/tsapps/topdeals/bo;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/PreferencesActivity;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/PreferencesActivity;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/bo;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/content/DialogInterface;I)V
    .locals 2

    sget v0, Lnet/tsapps/topdeals/b/k;->a:I

    if-ne p2, v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/bo;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    check-cast p1, Lnet/tsapps/topdeals/b/k;

    invoke-virtual {p1}, Lnet/tsapps/topdeals/b/k;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/h/a;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/bo;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;Z)V

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bo;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lnet/tsapps/topdeals/h/a;->g()Lnet/tsapps/topdeals/e/b;

    move-result-object v0

    invoke-virtual {v0}, Lnet/tsapps/topdeals/e/b;->c()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/bo;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/PreferencesActivity;->showDialog(I)V

    :cond_1
    return-void
.end method
